@import "~themes/vars.less";

body {
  height: 100%;
  overflow-y: hidden;
  background-color: #f8f8f8;
}

::-webkit-scrollbar-thumb {
  background-color: #e6e6e6;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

:global {
  // 按钮修改
  .ant-btn {
    min-width: 60px;
    &.ant-btn-icon-only {
      min-width: 32px;
      &.ant-btn-circle{
        min-width: 24px;
      }
    }
  }
  // 日期选择为直角
  .ant-calendar-date {
    border-radius: 0px;
  }
  // 下拉选择背景
  .ant-select-selection {
    background-color: #f8f8f8;
  }
  // 穿梭框头部
  .ant-transfer-list-header {
    background-color: #f5f7fb;
  }
  // 表格
  @table-border-color: #e1e7eb;
  .ant-table-content {
    background-color: #fff;
    border: 1px solid @table-border-color;
  }
  .ant-table-thead > tr > th {
    border-bottom: 1px solid @table-border-color;
  }
  .ant-table-tbody > tr > td {
    border-top: 1px solid @table-border-color;
    a:hover {
      text-decoration: underline; 
    }
  }
  .ant-table-tbody > tr:first-of-type > td {
    border-top: none;
  }
  .ant-table-tbody > tr:hover > td {
    background-color: #e6f7ff;
  }
  // 分页
  .ant-pagination {
    .ant-pagination-item, 
    .ant-pagination-prev, 
    .ant-pagination-next {
      border-radius: 0px;
      .ant-pagination-item-link {
        border-radius: 0px;
      }
    }
  }
  // 垂直分割线
  .ant-divider-vertical {   
    background-color: #ccc;
  }
  
  .ant-breadcrumb {
    & > span {
      &:last-child {
        color: #999;
        font-weight: normal;
      }
    }
  }

  .ant-breadcrumb-link {
    .anticon + span {
      margin-left: 4px;
    }
  }

  .ant-table-pagination {
    float: none!important;
    display: table;
    margin: 16px auto !important;
  }

  .ant-popover-inner {
    border: none;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(100, 100, 100, 0.2);
  }

  .vertical-center-modal {
    display: flex;
    align-items: center;
    justify-content: center;

    .ant-modal {
      top: 0;

      .ant-modal-body {
        max-height: 80vh;
        overflow-y: auto;
      }
    }
  }

  .ant-form-item-control {
    vertical-align: middle;
  }

  .ant-modal-mask {
    background-color: rgba(55, 55, 55, 0.2);
  }

  .ant-modal-content {
    box-shadow: none;
  }

  .ant-select-dropdown-menu-item {
    padding: 12px 16px !important;
  }

  .margin-right {
    margin-right: 16px;
  }

  a:focus {
    text-decoration: none;
  }
}
@media (min-width: 1600px) {
  :global {
    .ant-col-xl-48 {
      width: 20%;
    }

    .ant-col-xl-96 {
      width: 40%;
    }
  }
}
@media (max-width: 767px) {
  :global {
    .ant-pagination-item,
    .ant-pagination-next,
    .ant-pagination-options,
    .ant-pagination-prev {
      margin-bottom: 8px;
    }

    .ant-card {
      .ant-card-head {
        padding: 0 12px;
      }

      .ant-card-body {
        padding: 12px;
      }
    }
  }
}
